package com.nikitova.craps3d.controller {
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import org.puremvc.as3.multicore.utilities.startupmanager.model.RetryParameters;
	import org.puremvc.as3.multicore.utilities.startupmanager.model.RetryPolicy;
	import org.puremvc.as3.multicore.utilities.startupmanager.model.StartupMonitorProxy;

	/**
	 * @author schranz
	 */
	public class InitializeStartupManagerCommand extends SimpleCommand 
	{
		/*
		 * Start loading using the StartupManager that uses the proxies registered in the ModelPrepCommand
		 */
		override public function execute( note : INotification ) : void
		{
			var monitor : StartupMonitorProxy = facade.retrieveProxy(StartupMonitorProxy.NAME) as StartupMonitorProxy;
			monitor.defaultRetryPolicy = new RetryPolicy(new RetryParameters(0, 0, 30)); 
			monitor.loadResources();
			
		}
	}
}
